package org.darkforest.common.services;

import org.darkforest.model.Seller;
import org.darkforest.vo.StoreSellerVo;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2015/12/18.
 */
public interface SellerService {


    int deleteByPrimaryKey(Integer sellerId);

    int insert(Seller record);

    int insertSelective(Seller record);

    Seller selectByPrimaryKey(Integer sellerId);

    Seller selectBySellerName(String sellerName);

    List selectAllSeller();

    int updateByPrimaryKeySelective(Seller record);

    int updateByPrimaryKey(Seller record);

    List<Seller> findSellerByCondition(Seller record);

    int deleteByStoreId(Integer storeId);

    /**
     * 在编辑时 查询除本身之后的相同数据
     * @param map
     * @return
     */
    List<Seller> findSellerExceptSelf(Map<String, Object> map);
}
